Amazon API Gateway Rest API can be configured for private access by using a VPC. This may help prevent unauthorized access or data loss through public networks.
In AWS Console -
In Terraform -
References:
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-vpc-endpoint-policies.html
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_rest_api#endpoint_configuration